GETUID

Section: System Calls (2)
Index Return to Main Contents

BSD mandoc
BSD 4  

NAME

getuid geteuid - get user identification  

SYNOPSIS

Fd #include <sys/types.h> Fd #include <unistd.h> Ft uid_t Fn getuid void Ft uid_t Fn geteuid void  

DESCRIPTION

The Fn getuid function returns the real user ID of the calling process. The Fn geteuid function returns the effective user ID of the calling process.

The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of ``set-user-ID '' mode processes, Fn getuid is used to determine the real-user-id of the calling process.  

ERRORS

The Fn getuid and Fn geteuid functions are always successful, and no return value is reserved to indicate an error.  

SEE ALSO

getgid(2), setreuid(2)  

STANDARDS

Fn Geteuid and Fn getuid functions conform to St -p1003.1-88 .


 

Index

NAME
SYNOPSIS
DESCRIPTION
ERRORS
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 16:28:59 GMT, April 18, 2022